package com.ruoyi.ruoyixingyue.modules.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 卢壮志
 * @Date 2024/2/27
 * @Time: 17:02
 */
@Data
@ApiModel("章节新增Vo")
public class CatagueInsertVo {

    @ApiModelProperty("章节名称")
    @NotBlank(message = "章节名称不能为空")
    private String name;

    @ApiModelProperty("课程名称")
    @NotNull(message = "课程不能为空")
    private Long courseId;

    @ApiModelProperty("目录名称")
    @NotNull(message = "目录不能为空")
    private Integer type;

    @ApiModelProperty("所属章节")
    private Long pid;

    @ApiModelProperty(value = "章节排序")
    @NotNull(message = "章节排序不能为空")
    private Integer index;

    @ApiModelProperty("视频封面")
    @NotBlank(message = "章节名称不能为空")
    private String coverUrl;

    @ApiModelProperty("media Id")
    @NotNull(message = "视频表的id不能为空")
    private Long mediaId;

}
